package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Role;
import com.itheima.pojo.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: xy
 * @Date: create in 2020/3/8
 * @description:
 * @version: 1.0
 */
public interface UserDynamicMaintenanceDao {
    Page<SysUser> findByCondition(String queryString);

    void add(SysUser sysUser);

    void delById(@Param("id") Integer id);

    SysUser findById(@Param("id") Integer id);

    void edit(SysUser sysUser);

    void set( @Param("sysUserId") Integer sysUserId,@Param("roleId") Integer roleId);

    void delRelation(@Param("sysUserId") Integer sysUserId);

    List<Integer> findRoleIdsById(@Param("id") Integer id);
}
